//
// Created by 123 on 2024/12/31.
//
/**
 * 初始化列表方式初始化类
 */
#include "iostream"
using namespace std;

class Dog{
private:
    int A;
    int B;
    int C;
public:
//    Dog(int a,int b,int c) {
//        A = a;
//        B = b;
//        C = c;
//    }
    //初始化列表方式初始化
    Dog(int a,int b,int c):A(a),B(b),C(c){};
    void printDog(){
        cout << "A==" << A << endl;
        cout << "B==" << B << endl;
        cout << "C==" << C << endl;
    }

};

int main062(){
    Dog dog(1,3,3);
    dog.printDog();

    return 0;
}